package lhl;

public class max {

	public static void main(String[] args) {
	int[]  nums={ (int) 34.2, (int) 45.6,(int) 87.3,(int) -98.2,123};
	
	int max=nums[0];
	
	for(int  i=1;i<nums.length;i++){
		if(nums[i]>max){
			max=nums[i];
			
		}
		System.out.println(max);
	}
	
	

	}

}
